package com.directv.z8training.ex1;

/**
 * @author HieuLT8
 *
 */
public class Developer extends Employee {
	
	public String mainLanguage;

	/**
	 * @param lastname
	 * @param firstname
	 * @param birthday
	 * @param sday
	 * @param taxcode
	 * @param salary
	 * @param lunch
	 * @param lang
	 */
	public Developer(String lastname, String firstname, String birthday,
			String sday, String taxcode, long salary, long lunch, String lang) {
		super(lastname, firstname, birthday, sday, taxcode, salary, lunch);
		this.mainLanguage = lang;
		// TODO Auto-generated constructor stub
	}
	
	@Override
	public long calcBouns() {
		bouns = (long) (salary * 0.1);
		return bouns;
	}

	/**
	 * @return
	 */
	public String getMainLanguage() {
		return mainLanguage;
	}

	/**
	 * @param mainLanguage
	 */
	public void setMainLanguage(String mainLanguage) {
		this.mainLanguage = mainLanguage;
	}

}
